package foodmaterial.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import foodmaterial.action.valid.ObjectNullValid;
import foodmaterial.utils.Constants;

import java.io.Serializable;
import java.util.Date;

/**
 * 食材供应
 */
public class FoodMaterialSupply implements Serializable {
    private static final long serialVersionUID = 4143973276049941003L;

    private Long id ;
    @ObjectNullValid(message = "食材不能为空")
    private Long foodMaterialId ;
    private String foodMaterialName ;
    private String specs ;
    private String brand ;
    private String unitName ;
    private Long foodMaterialTypeId ;
    private String foodMaterialTypeName ;
    @JsonFormat(pattern= Constants.DEFAULT_DATE_FORMAT,timezone="GMT+8")
    private Date supplyDate; //'食材供应日期'
    private Boolean originalProcess ;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getSupplyDate() {
        return supplyDate;
    }

    public void setSupplyDate(Date supplyDate) {
        this.supplyDate = supplyDate;
    }

    public Long getFoodMaterialId() {
        return foodMaterialId;
    }

    public void setFoodMaterialId(Long foodMaterialId) {
        this.foodMaterialId = foodMaterialId;
    }

    public String getFoodMaterialName() {
        return foodMaterialName;
    }

    public void setFoodMaterialName(String foodMaterialName) {
        this.foodMaterialName = foodMaterialName;
    }

    public String getSpecs() {
        return specs;
    }

    public void setSpecs(String specs) {
        this.specs = specs;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public Long getFoodMaterialTypeId() {
        return foodMaterialTypeId;
    }

    public void setFoodMaterialTypeId(Long foodMaterialTypeId) {
        this.foodMaterialTypeId = foodMaterialTypeId;
    }

    public String getFoodMaterialTypeName() {
        return foodMaterialTypeName;
    }

    public void setFoodMaterialTypeName(String foodMaterialTypeName) {
        this.foodMaterialTypeName = foodMaterialTypeName;
    }

    public Boolean getOriginalProcess() {
        return originalProcess;
    }

    public void setOriginalProcess(Boolean originalProcess) {
        this.originalProcess = originalProcess;
    }
}
